package com.project.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 供应商实体类
 */
@TableName("t_provider")
@ExcelTarget("provider")
public class ProviderBean {
    /**供应商编号*/
    @TableId(value = "pk_providerId",type = IdType.AUTO)
    private Integer providerId;
    /**供应商名称*/
    @TableField("p_providerName")
    @Excel(name = "供应商名称")
    private String providerName;
    /**供应商负责人*/
    @TableField("p_principalName")
    @Excel(name = "负责人")
    private String principalName;
    /**负责人电话*/
    @TableField("p_phone")
    @Excel(name = "负责人电话")
    private String phone;
    /**供应商地址*/
    @TableField("p_address")
    @Excel(name = "供应商地址")
    private String address;
    /**经营范围*/
    @TableField("p_manageRange")
    @Excel(name = "经营范围")
    private String manageRange;

    public ProviderBean() {
    }

    public ProviderBean(String providerName, String principalName, String phone, String address, String manageRange) {
        this.providerName = providerName;
        this.principalName = principalName;
        this.phone = phone;
        this.address = address;
        this.manageRange = manageRange;
    }

    public Integer getProviderId() {
        return providerId;
    }

    public void setProviderId(Integer providerId) {
        this.providerId = providerId;
    }

    public String getProviderName() {
        return providerName;
    }

    public void setProviderName(String providerName) {
        this.providerName = providerName;
    }

    public String getPrincipalName() {
        return principalName;
    }

    public void setPrincipalName(String principalName) {
        this.principalName = principalName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getManageRange() {
        return manageRange;
    }

    public void setManageRange(String manageRange) {
        this.manageRange = manageRange;
    }

    @Override
    public String toString() {
        return "ProviderBean{" +
                "providerId=" + providerId +
                ", providerName='" + providerName + '\'' +
                ", principalName='" + principalName + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", manageRange='" + manageRange + '\'' +
                "}\n";
    }
}
